
package com.gzbsoft.sc.modules.sys.controller;
import com.gzbsoft.sc.modules.sys.entity.SysUser;
import org.apache.shiro.SecurityUtils;
/**
 * Controller公共组件
 *
 * @author Mark sunlightcs@gmail.com
 */
public abstract class AbstractController {
    protected SysUser getUser() {
        return (SysUser) SecurityUtils.getSubject().getPrincipal();
    }
}
